Skip to content

Conversation

adamchalmers
Copy link
Contributor

Removes some unnecessary string allocations. Improves perf by 5% on my Macbook.

@adamchalmers adamchalmers requested a review from a team as a code owner July 22, 2025 03:13
Copy link

vercel bot commented Jul 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2025 3:22am

Copy link

codspeed-hq bot commented Jul 22, 2025

CodSpeed Instrumentation Performance Report

Merging #7877 will not alter performance

Comparing achalmers/rm-more-writes (45e9b7d) with main (d8a4ac7)

Summary

✅ 89 untouched benchmarks

}
}
}

impl fmt::Display for NumericSuffix {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of duplicating this, fmt() should call write_to(), similar to #7997.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants